Page({
  repairList: [],
  onShow() {
    // 获取报修列表
    this.getList()
  },
  //定义获取保修单列表
  async getList() {
    const { data: { rows: repairList } } = await wx.http.get('/repair')
    console.log("保修数据", repairList);
    this.setData({
      repairList
    })
  },

  goDetail(e) {
    wx.navigateTo({
      url: '/repair_pkg/pages/detail/index?id=' + e.mark.id,
    })
  },
  addRepair() {
    wx.navigateTo({
      url: '/repair_pkg/pages/form/index',
    })
  },
})
